package Client;

import java.io.Serializable;

public class RaceData implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Integer ID = 0;
	public String name;
	public String country;
	public Integer distance = 0;
	public Time lap;
	public Time total;
	public Integer finish;
	
	public RaceData(Integer ID, String name, String country, Integer distance, Time total, Time lap, Integer finish) {
		this.ID = ID;
		this.name = name;
		this.distance = distance;
		this.lap = lap;
		this.total = total;
		this.country = country;
		this.finish = finish;
	}
	
	public String toString() {
		String output = "<" + name + "> distance: " + distance + " | lap: " + lap.getTimeStamp() + 
				" | total: " + total.getTimeStamp() + " | distance to finish: " + finish;
		return output;
	}
	
}
